package com.tanhua.sso.config;


import lombok.Data;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;


@Data
@PropertySource("classpath:aliyun.properties")
@Configuration
/**
 * @ConfigurationProperties 中prefix的属性就是前缀
 */
@ConfigurationProperties(prefix = "aliyun.sms")
//创建配置属性的实现类
public class AliyunSMSConfig {
    private String regionId;
    private String accessKeyId;
    private String accessKeySecret;
    private String domain;
    private String signName;
    private String templateCode;
}
